<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>选择器的优先级</title>
</head>
<style type="text/css">
  p{
    color: blueviolet;
  }
  .a{
    color: #cd8c26;
  }
  #isP{
    color: #4cbb4a;
  }
</style>
<body>
  <p class="a" id="isP" style="color: #1b6f9b">我是一段文字哈哈哈哈</p>
</body>
</html>